home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr14 / wintip_h.zip / WINTIPS.TXT
Text File  |  1995-01-16  |  39KB  |  649 lines

  1.                               WINDOWS TIPS
  2.                               ------------
  3.                               Hugh Horton
  4.                             January 15, 1995
  5.  
  6.  
  7. WINDOWS PERFORMANCE SETTINGS
  8. ----------------------------
  9.  
  10. An area under the user's control that limits Windows' ability to open multiple programs and operate for extended lengths of time without crashing is the available DOS Conventional Memory.  The more memory available in the DOS 640K area, the better.  You can determine how much DOS Conventional Memory you have by exiting Windows (if necessary) and typing MEM while in DOS.  Look at the number given for "Largest executable program size".  If this number is well above 600K (614,400 bytes), you're in pretty good shape.  Windows will also use any available Upper Memory.  You can confirm this by typing MEM from the Windows DOS Prompt and comparing the 0K value given for "Largest free upper memory block" with the value displayed when MEM was executed from DOS.  Tips for obtaining all possible Upper Memory and maximizing the amount of DOS Conventional Memory will be posted in a DOSTIPS file in the IBM PC area in a few weeks.
  11.  
  12. I only know of three Windows settings that affect performance and aren't immediately available from a menu (such as the Virtual Memory swap file settings).  The first is one I discovered at my new job assignment.  The last two below were publicized by InfoWorld.
  13.  
  14. 1.  The first concerns DOS memory and a new Windows driver, VSHARE.386.  
  15. I found that all their Windows SYSTEMS.INI files had the following line 
  16. in the [386Enh] section.
  17.  
  18.     device=vshare.386
  19.  
  20. The VSHARE.386 file could be found in the \WINDOWS\SYSTEM directory.  
  21. This enabled the entry for SHARE to be removed from the AUTOEXEC.BAT or 
  22. CONFIG.SYS file, thus freeing up 16K from Upper Memory or DOS 
  23. Conventional Memory, depending on whether it was loaded high or not.  
  24. Freeing up Conventional Memory permits loading larger programs (such as 
  25. games) in DOS and Windows DOS sessions, and enables Windows to run 
  26. better and open more programs (if Resources permit).  Windows will also 
  27. make use of any free Upper Memory (to prove this, try running MEM /C/P 
  28. from a Windows DOS Prompt).
  29.  
  30. When I got home, I found VSHARE.386 in my \WINDOWS\SYSTEM directory and 
  31. the appropriate entry in my SYSTEM.INI file.  However, the LH 
  32. C:\DOS\SHARE entry was still in my AUTOEXEC.BAT file.  After I removed 
  33. it from my AUTOEXEC, I found that the Windows programs that demanded use 
  34. of SHARE, such as Excel and Quattro Pro 5.0 for Windows still ran fine.
  35.  
  36. I then dialed up Microsoft Product Support Download Service BBS (1-206-
  37. 936-6735 or 1-206-637-9009), and after much searching, found the VSHARE 
  38. file (named WW1000.EXE with no description except VSHARE!) in the 
  39. Windows 3.1 Application Notes file area.  This file has been recompressed and can now be found as VSHARE.ZIP in the Windows file area of the Computer Edge BBS.
  40.  
  41. If you look at the README.TXT file, it states that VSHARE.386 is the 
  42. same file distributed with the MS Word 6.0a patch - so that's where I 
  43. got it!  It gives instructions for installing it and explains that it's 
  44. the same as the Windows for Workgroups VSHARE.386, modified for use with 
  45. Windows 3.1 and 3.11 Enhanced mode (keep SHARE if you run Windows in 
  46. Standard mode).
  47.  
  48. 2.  The second is placing the following entry in the [386Enh] section of 
  49. SYSTEM.INI.
  50.  
  51.     MaxBPs=768
  52.  
  53. The Windows Resource Kit states that "This entry specifies the maximum number of break points (a method for transferring control to Windows 386 enhanced mode) that can be used by the VMM.  You may need to increase this value if you are using a third-party virtual device driver that requires more break points than the default value.  The default is 200."
  54.  
  55. On page 29 of the January 24, 1994 InfoWorld, Brian Livingston's Window 
  56. Manager column titled "Correct most Windows instability with just a 
  57. single command" states:
  58.     "For years, Windows users have been mystified by strange error 
  59. messages.  For no apparent reason, you may be confronted with a dialog 
  60. box such as 'Out of memory,' 'This application has violated system 
  61. integrity and will be closed,' or 'Application error.'  A quick check of 
  62. the Help About box in any Windows Applet reveals that you have plenty of 
  63. memory and Free System Resources.  Yet these nonsensical messages appear  
  64. after which Windows behaves erratically and must be restarted.
  65.     Breakpoints ... are small chunks of memory (approximately 10 bytes 
  66. each) that Windows uses to save the state of a Virtual Machine (VM).  
  67. All Windows applications run in one VM, and each DOS session that is 
  68. launched from Windows runs in another VM.  Windows applications may also 
  69. spawn VMs for one reason or another ...
  70.     Ordinarily, Windows allocates 4KB of RAM for breakpoints.  Then the 
  71. default value of 200 is rounded upward to fill the entire 4KB.  This 
  72. means that 358 breakpoints are actually set up.  In the process of 
  73. running its various modules on startup, Windows itself uses about 200 of 
  74. these.  That leaves about 158 for your own operations.
  75.     Once your BPs are exhausted, the mysterious error messages come 
  76. fast.  Starting a DOS session, for example, causes an 'Application 
  77. error' dialog box, saying 'WINOLDAP caused a General Protection Fault in 
  78. WINOA386.MOD.'  [I've seen plenty of those! - HH]
  79.     Any MaxBPs setting of 369 to 768 gives you about 410 more 
  80. breakpoints, at a cost of 4KB of RAM (well worth it.)"
  81.  
  82. 3.  Third, if you are the recipient of unexplained error messages and 
  83. system crashes while running Windows for Workgroups with 32-Bit File 
  84. Access (not 32-Bit Disk Access) turned on, disable the 32-Bit File 
  85. Access and change the SmartDrive line in AUTOEXEC.BAT to read just 
  86. C:\DOS\SMARTDRV or C:\WINDOWS\SMARTDRV instead of the usual SMARTDRV 
  87. 2048 128.  If Windows for Workgroups reliability improves, leave these 
  88. changes in effect.  We found this greatly increased the time between 
  89. crashes on computers running WFW on a Novell NetWare 3.12 network.  The 
  90. explanation that I found for this effect is quoted below.
  91.  
  92. On page 28 of the August 1, 1994 InfoWorld, Brian Livingston's Window 
  93. Manager column titled "Discovering virtual disk drive problems in 32-Bit 
  94. File Access" states:
  95.     "I recently got my hands on a printout of other anomalies from 
  96. Microsoft's Product Support Services (PSS).  These are real 
  97. incompatibilities with VFAT.386 (the virtual disk driver used for 32-Bit 
  98. File Access) that are unrelated to the problems with earlier DOS disk 
  99. utilities.
  100.     Windows for Workgroups hangs when you start it if 32-Bit File 
  101. Access is enabled and you are using some versions of Hewlett-Packard 
  102. Co.'s driver for its HP JetDirect card.  This driver, HPVNPD.386, 
  103. redirects Print Manager output across a network to a printer with a Jet 
  104. Direct card installed.
  105.     You may receive the following message when you try to read files on 
  106. a LAN Manager, LANtastic, or OS/2 LAN Server network server (from File 
  107. Manager of a DOS prompt): 'An Error Occurred Reading Drive N:' where N: 
  108. is the network drive.
  109.     You cannot use 32-Bit File Access on Stac Electronics Inc.s Stacker 
  110. 4.0 compressed drive.  Use the SmartDrive command line mentioned above 
  111. as a disk cache instead.
  112.     Running the Sun Microsystems Inc. PC-NFS (Network File System) 5.0 
  113. may result in the following error message when you exit Windows for 
  114. Workgroups 3.11: 'Invalid COMMAND.COM.'  You must disable 32-Bit File 
  115. Access, because this combination is incompatible."
  116.  
  117. On page 32 of the July 11, 1994 InfoWorld, Brian Livingston's Window 
  118. Manager column titled "Dissecting Windows for Workgroups' 32-Bit File 
  119. Access bugs" states:
  120.     "32-Bit File Access is a protected-mode disk cache that runs under 
  121. Windows for Workgroups to improve disk performance.  ...This should not 
  122. be confused with 32-Bit DISK Access, which is configured through the 
  123. same dialog box.
  124.     The problem is demonstrated by a virtual device driver (VxD) 
  125. developed by [Michael] Maurice [of Wilsonville, Ore.-based Firefly 
  126. Software Systems Corp. (CompuServe: 71171,47)] called Test32F.  When the 
  127. VxD is loaded via SYSTEM.INI, DOS sessions started under Windows for 
  128. WorkGroups prompt the error 'This Application Has Violated System 
  129. Integrity.'
  130.     This VxD causes this error merely by opening, reading and closing a 
  131. file ... [by] doing a protected-mode INT 21 call
  132.     If the read operation is left out of the code, no error occurs.  
  133. Also, if 32-Bit File Access is turned off, no error occurs."
  134.  
  135. On page 25 of the July 4, 1994 InfoWorld, Brian Livingston's Window 
  136. Manager column titled "32-Bit File Access stirs up trouble with some DOS 
  137. applications" states:
  138.     "The issue seems to arise when a user starts a DOS session or 
  139. application under Windows.  In some cases, if 32-Bit File Access is 
  140. enabled, the DOS session crashes with the message 'This Application Has 
  141. Violated System Integrity'."
  142.  
  143. On page 28 of the July 25, 1994 InfoWorld, Brian Livingston's Window 
  144. Manager column titled "Readers offer some tips in the continuing 32-Bit 
  145. File Access saga" states:
  146.     "Reader Eric Brewer writes, '... use a DOS directory utility ... 
  147. three levels down in the tree causes a crash, while being two levels 
  148. down does not.'  ...  Two readers [report] 'The program 1dir+ [a DOS 
  149. file manager program] from Bourbaki Inc. crashes when 32-Bit File Access 
  150. is turned on.'
  151.     The best explanation submitted so far is by a technician in a 
  152. respected testing lab who writes, 'If I'm correct, the problem might be 
  153. that 32-Bit File Access doesn't reflect all INT 21 requests through the 
  154. chain.  TSRs that expect a coherent picture of INT 21 requests, such as 
  155. those for monitoring access to specific files, won't get it under 32-Bit 
  156. File Access'."
  157. ========================================================================
  158.  
  159. WINDOWS RESOURCES
  160. -----------------
  161.  
  162. 4.  The Windows Resources consist of three 64K heaps; GDI, User, and User Menu.  The GDI and User Resources are reported by Windows Program 
  163. Manager Help, About and by other utilities, and are usually the limiting factor on how many applications can be opened at one time.  Unfortunately, when you exit many programs, they don't completely free up the Resources they use.  Eventually, when enough programs are opened and closed, there aren't enough Resources available to perform any useful work.  Therefore, when the Resources drop to an unacceptable level, its time to close everything, exit Windows, and then restart Windows again.
  164.  
  165. Here are a couple of problem descriptions that were Resource related.
  166.  
  167. PROBLEM:  User couldn't open any more programs or print when Ami Pro, MS
  168. Word, and MS Excel were all open.  Cause was insufficient Windows 
  169. Resources - they were down to 26% when all three programs were open.  
  170. Further investigation revealed culprit was Excel.  It was taking 38% 
  171. Resources!  Reinstalling Excel resulted in a program that only required 
  172. a more normal 16% Resources.
  173.  
  174. PROBLEM:  User couldn't open any more programs or print when Ami Pro, 
  175. Lotus 123, and WordPerfect for Windows 5.2 were all open.  This time, 
  176. WPWin was taking 25% Resources.  I noticed she had the WPWin add-on 
  177. program Button Cube present.  When she said she seldom used it, I 
  178. removed it and WPWin required Resources dropped back to a normal 15%.
  179.  
  180. These problems, plus questions regarding screen savers and bit
  181. maps, made me curious about typical program Resource and Memory 
  182. requirements.  I therefore tried opening and closing a number of 
  183. programs to see how much they required and how much was never returned 
  184. to Windows after closing.  These values were obtained from FREEMEM 
  185. (available in the Computer Edge Bulletin Board Windows file area as FREEMEM.ZIP) with memory compacting turned on to more accurately show the amount of unreturned memory.  The results are presented below for just opening and closing the program.  The Resources and Memory used will increase when a file is opened with the amount varying according to the file size, complexity, and included graphics.
  186.  
  187.                                                         UNRETURNED
  188. PROGRAM                       USER  GDI     MEMORY  USER  GDI   MEMORY
  189.  
  190. Freemem                         0%   1%        75K
  191. Windows Wallpaper               0%   0%        25K
  192. Bitmap Wallpaper                0%   1%       464K
  193. Screen Saver                    0%   1%       109K
  194.  
  195. Lotus Ami Pro 3.0               5%   6%       387K    0%   0%      25K
  196. MS Word 6.0a                    9%  12%       567K    1%   0%      35K
  197. WordPerfect 5.2                15%   8%       807K    0%   0%       1K
  198. WordPerfect 6.0a               18%  23%     1,051K    1%   6%      42K
  199.  
  200. Lotus 123 R4                    7%   9%     1,679K    0%   0%       0
  201. MS Excel 5.0                    9%  15%       457K    1%   1%      32K
  202. Quattro Pro 5.0                 4%  13%     1,604K    1%   2%      88K
  203.  
  204. Harvard Graphics 2.0            7%   7%     1,042K    1%   0%      -2K !
  205. Lotus Freelance 2.01            7%   6%       890K    1%   1%      47K
  206. WordPerfect Presentations 2.0  16%   9%       771K    2%   0%      15K
  207. MicroGrafx Designer 3.1         6%  10%       174K    0%   0%       5K
  208. Visio                           6%   6%       444K    1%   0%      -4K !
  209. Paint Shop Pro                  2%   2%       208K    0%   1%       7K
  210.  
  211. Lotus Approach 2.1              3%   3%       391K    0%   0%       0
  212. Time Line for Windows 1.0.0     4%   0%       102K    0%   0%      37K
  213. MathCAD 4.0                     5%  18%     3,506K    0%   0%       0
  214.  
  215. MicroLink                       4%   2%       220K    0%   1%      11K
  216. CMPQwk Reader                   3%   2%       464K    0%   1%      41K
  217. DOS Prompt                      1%   1%      1,497K   0%   1%       0
  218.  
  219. As might be expected, WordPerfect for Windows 6.0a, which is a real 
  220. memory hog (I recommend a system with 16 MB RAM), is also a Resource 
  221. hog.  It's not unusual for an application to require fewer Resources for 
  222. subsequent openings.  In this case, WPWin is able to use most of the 
  223. Resources it left behind when it was previously closed, so that "only" 
  224. 16% user and 18% GDI Resources are used when it is opened again.  Of 
  225. course, this second opening starts with a lower Resource level than the 
  226. first opening!
  227.  
  228. The average clean Windows installation should start with about 80-85% 
  229. Resources.  Your system may have slightly lower values depending on 
  230. drivers (video, sound card, CD, network, etc.)  For instance, my 486/66 
  231. with an ATI Turbo Graphics Pro video card (800 x 600 x 256 colors) and a
  232. Sound Blaster 16 starts with 79% User Resources and 81% Graphics 
  233. Resources.
  234.  
  235. The information above shows that complex programs such as word 
  236. processors, spreadsheets, and graphics applications can limit you to 
  237. about 3 usable programs open at a time.  For instance, if you start with
  238. 80%, open 3 applications that take an average of 15% each, you are down 
  239. to 35%.  Opening another application can push you well below 30% and put
  240. you in the position where you can't print and are in serious risk of an 
  241. "Application Error" or GPF.
  242.  
  243. Since many of these programs consume a small amount of Resources and 
  244. Memory every time they are opened and closed, it's a good idea to 
  245. monitor these quantities and restart Windows whenever they start running
  246. too low.  It's also a good idea to reset or turn off the computer at the
  247. end of each day to insure that the computer memory and hardware are in a
  248. clean condition at the start of the next day's activities.  In the not 
  249. so old days of MFM hard drives, we used to recommend turning off the 
  250. monitor to save electricity, but leave the computer on overnight to 
  251. avoid stressing the hard drive by starting it again.  With current IDE 
  252. hard drives having MTBFs of hundreds of thousands of hours (Mean Time 
  253. Between Failures equal to tens of years of continuous operation) and the
  254. extensive use of Windows, it's more important to start with an 
  255. uncorrupted configuration.
  256.  
  257. Another thing I examined is whether having many groups and icons open on
  258. the desktop actually used much in the way of Resources.  I and many 
  259. others have heard that these use a fair amount of Resources, and the 
  260. number of open items on the Desktop should be kept to a minimum.  This 
  261. is something I've ignored, since I'd rather have an application 
  262. immediately available and not have to find and open a group to access 
  263. it.  I've also found it very annoying to work on a computer where the 
  264. user has set the Program Manager Options to Minimize on Use.  It's a 
  265. real pain to exit an application, then have to double-click the Program 
  266. Manager icon in order to open anything else.  I was therefore quite 
  267. surprised and pleased to find that the Resource percentages didn't 
  268. change whether I had the Program Manager open and the Desktop completely
  269. covered with open groups an icons, or all the groups minimized, or even 
  270. Program Manager minimized.
  271. ========================================================================
  272.  
  273. WINDOWS HINTS
  274. -------------
  275.  
  276. Many of you are probably aware of these, but in my work, I've found the
  277. majority of users could benefit from these recommendations.
  278.  
  279. 5.  Tired of having your carefully positioned icons and groups getting
  280. moved?
  281.  
  282. a.  On the Program Manager menu, click on Options, then select Auto
  283. Arrange.  This causes Windows to continuously arrange the icons
  284. automatically.  If you accidentally move an icon slightly, it snaps back
  285. into position when you release the mouse button.  You no longer have to
  286. click on Windows, Arrange Icons to get even icon spacing.
  287.  
  288. b.  To automatically arrange the Group icons at the lower portion of
  289. your Windows Desktop, drag a Group to a slightly different position.
  290. This leaves the Group icon highlighted as the active icon.  Now click on
  291. Windows, Arrange Icons and the Groups will snap to even spacings.
  292.  
  293. c.  Now go back to the Options menu again and uncheck Save Settings on
  294. Exit.  If you accidentally move a Group window or icon from its
  295. carefully arranged position, the unwanted position will not be saved
  296. when you exit Windows.  In order to save the Desktop arrangement after
  297. you've made a change, click on File, then HOLD DOWN THE SHIFT KEY while
  298. clicking on Exit.  Instead of exiting Windows, you'll see the hourglass
  299. come on momentarily while the new Desktop settings are saved.  Don't
  300. forget to repeat this procedure whenever you rearrange the Desktop or
  301. add a new program!
  302.  
  303. 6.  Want to get more icons on your Desktop?
  304.  
  305. a.  Of course, you can run Program Manager Maximized.  I like to set it
  306. to run in a window, then drag the left and right borders to the far
  307. left and right, the top border to the uppermost position, and the bottom
  308. border to within 0.25-0.5 inches from the bottom.  This lets me get
  309. almost as much Desktop area as Maximized mode, while still letting any
  310. full screen program show a portion at the bottom.  When I get done using
  311. Program Manager, I can return to that program by simply clicking on the
  312. visible portion of the maximized program at the bottom of the screen.
  313.  
  314. b.  Whether you use Program Manager Maximized or windowed to some
  315. position, you can still display more icons by changing the icon spacing.
  316. Open up the Windows Control Panel (in the Main Group) and double-click
  317. the Desktop icon.  About two-thirds of the way down on the right, you'll
  318. see the Icons settings.  Make sure the Wrap Title box has an X.  If not,
  319. check this box.  You'll also see the icon horizontal Spacing set to the
  320. default value of 75 pixels.  Change it to 69 pixels.  Adjust the right
  321. border of each group to the narrowest position that does not cause the
  322. icons to snap to one more row.  (Make sure Auto Arrange is selected as
  323. described in 5. above.)  If necessary, drag the group bottom border down
  324. so that all icons are displayed without having a group vertical scroll
  325. bar.  (In my opinion, scroll bars just take up valuable Desktop area.)
  326. You can make the initial adjustments in large increments and the final
  327. adjustments one pixel at a time.  This takes a steady hand and a bit of
  328. trying, but is well worth it.
  329.  
  330. c.  You can move the groups so they just touch without overlapping by
  331. dragging on the group title bar.  Position the leftmost and topmost
  332. groups so that they are as close as possible to the Program Manager
  333. borders without creating Program Manager scroll bars.  For the usual 640
  334. x 480 VGA resolution, this will let you have two groups side-by-side
  335. with 4 icons in one group and 5 icons in the other when the Desktop is
  336. set to its maximum horizontal extent with a horizontal Spacing of 69 pixels.  This 69 pixel setting also lets you have an extra column of icons with an 800 x 600 SVGA display.  For my 800 x 600 display, I set this value to 64 to get still another column of icons for a total of 12 icons horizontally in three groups.
  337.  
  338. d.  You can also change the vertical spacing to get more rows of icons.
  339. Unfortunately, this cannot be accomplished via a Windows control.
  340. Instead it requires editing the WIN.INI file in the \WINDOWS directory.
  341. Using a TEXT editor (not a word processor) such as DOS EDIT, the Windows
  342. Notepad in the Accessories Group, or Windows SYSEDIT (we'll describe how
  343. to obtain access to this program in the next section), open up the
  344. \WINDOWS\WIN.INI file.  Scroll down to the [Desktop] section and insert
  345. an empty line by hitting <Enter> at the beginning or end of a line.  Now
  346. type in:
  347.  
  348.   IconVerticalSpacing=nn
  349.  
  350. where nn= a number less than the default value of 75.  Try an initial
  351. value of 64 to 69 and then readjust your Desktop Groups to just
  352. encompass the bottom row of icons without creating a vertical scroll bar
  353. at the right edge of the group.  You'll find that if you highlight an
  354. icon having a title that extends farthest down, you can then drag the
  355. group bottom border upwards so that there is one pixel spacing (a thin
  356. white area) between the group border and the icon title highlight.  This
  357. is the closest spacing you can achieve without creating a vertical
  358. scroll bar.  On my SVGA windowed display, I can get 7 rows of icons
  359. using IconVerticalSpacing=61.
  360.  
  361. e.  If you have program icons with three title rows, you can change them
  362. to display only one or two title rows.  Click the icon once to highlight
  363. the title and make that icon the active object.  Now click on File on
  364. the Program Manager menu bar.  Click on Properties.  The first line,
  365. Description, contains the icon title.  Change this to a shorter title of
  366. your choice and click the OK box.  If the icon title is still three
  367. lines, go back and repeat this procedure.  You can also insert a space
  368. between long words to change the title line wrapping.
  369.  
  370. 7.  Want more Windows Programs?
  371.  
  372. Of course, you can buy more programs to accomplish this.  However,
  373. Windows and MS-DOS 6.x come with Windows utilities that are often not
  374. already installed.
  375.  
  376. a.  Perhaps the most useful of these is the Windows System Configuration
  377. Editor (SYSEDIT) mentioned earlier.  First, click on the group (such as
  378. Main) where you want the Sysedit icon to appear.  To install an icon
  379. that lets you invoke SYSEDIT, click on File on the Program Manager menu
  380. bar.  Click on the already highlighted New.  Click on the OK button for
  381. the already selected Program Item.  Now click on the Browse button.
  382. You'll see that the Windows directory folder is already open.  If
  383. necessary, scroll down until you see the System directory folder.
  384. Double-click this folder or click once and then click the OK button.  On
  385. the left, you'll now see the files in the \WINDOWS\SYSTEM directory.
  386. Scroll down this listing until you see sysedit.exe.  Double-click this
  387. item, or click once and then click the OK button.  Now click OK on the
  388. Program Item Properties menu.  You'll now see the Sysedit icon available
  389. for use.
  390.  
  391. Double-clicking this icon brings up four overlapping edit windows
  392. arranged with AUTOEXEC.BAT in front, then CONFIG.SYS, WIN.INI, and
  393. SYSTEM.INI at the back.  Clicking on any visible portion of an edit
  394. window brings that window to the front where you can edit that file.
  395. When you're done, click on File on the menu bar and click on Save or
  396. Exit.  One of the benefits (or drawbacks, depending on your expertise
  397. and preferences) is that Sysedit first renames the old version of the
  398. edited file(s) with a .SYD extension.  Therefore, if you decide you
  399. don't want the changes you've just made (or find that you can't start
  400. Windows any more!), just delete the new version of the file and rename
  401. the .SYD file with it's proper extension; i.e.,
  402.  
  403.     REN  \WINDOWS\SYSTEM.SYD  SYSTEM.INI.
  404.  
  405. b.  You probably already know that you can check SmartDrive's caching
  406. performance by typing SMARTDRV /S at the DOS prompt.  How can you check
  407. these statistics from Windows?  One way would be to double-click the DOS
  408. Prompt icon and type the command.  Another way would be to create a PIF
  409. file with the command and parameter.
  410.  
  411. If you have MS-DOS 6.x, there's an easier way to do this.  MS-DOS 6.0
  412. and later comes with a Windows program called SMARTMON.EXE.  To make
  413. this immediately available for Windows, we'll repeat the procedure
  414. performed above for Sysedit.
  415.  
  416. First, click the group where you want Smartmon installed. If you already
  417. have an MS Tools group, this is a good place to put it.  Then click on
  418. Program Manager, File, New and then click on the OK and Browse buttons.
  419. Double-click on the open C:\ directory folder.  This takes you up to the
  420. root (top level) directory of C:.  Now scroll down until you see the dos
  421. directory and double-click on it (or click once on it and then click the
  422. OK button).  On the left, you'll see the files in the c:\DOS directory.  Scroll down until you see smartmon.exe.  Double-click on smartmon.exe (or click once and click OK).  Click the OK button in the Program Item Properties menu box.  You'll now have a Smartmon icon.
  423.  
  424. Double click this icon to start the SmartDrive Monitor program.  I'll
  425. leave it up to you to click the Help button and read the Help File for
  426. instructions on using it.  Whether you run it minimized or maximized, I
  427. think you'll find it mildly interesting for a short period of time.  I
  428. haven't found any long term use for this program, although it might be
  429. useful to someone developing a program that interacts with or uses the
  430. SmartDrive disk cache.
  431.  
  432. c.  Did you know that MS-DOS 6.x comes with Windows versions of the MS
  433. Backup, MS Undelete, and MS Anti-Virus programs?  These are
  434. automatically installed in a MS Tools Group if an MS-DOS 6 upgrade is
  435. performed on a computer that already has Windows installed.  (This is
  436. the default for an upgrade when Windows has been previously installed.
  437. If you want both the Windows and DOS versions of  these programs
  438. installed during an upgrade, you have to select Custom and then
  439. specifically select the Windows and DOS installation instead of Windows
  440. only.)
  441.  
  442. A new computer, however, will have MS-DOS 6.x installed first, then
  443. Windows 3.1/3.11 or Windows for Workgroups 3.1/3.11.  Unless the
  444. vendor's technicians then go back and install these DOS 6.x Windows
  445. programs, you won't have them on your new computer.
  446.  
  447. If you have MS-DOS 6.x upgrade disks (the $49 full upgrade version, not
  448. the $10 MS-DOS 6.0 to 6.20/6.22 Step Up version), you can easily install the Windows versions of these programs.  Go to a DOS prompt, put the first disk in your floppy drive, and:
  449.  
  450.     A:         (or B:, depending on the floppy drive)
  451.     SETUP /E
  452.  
  453. The /E switch instructs Setup to install only the missing programs.
  454. (This is documented in the \DOS\README.TXT file.)  If you have an OEM
  455. original version of MS-DOS, you'll have to install the files one at a
  456. time.  Go to a DOS prompt, put the first disk in your floppy drive, and
  457. then:
  458.  
  459.     CD \DOS
  460.     DIR A:\MW*.*
  461.  
  462. Note the file listing; they'll end with a _.  Now, type
  463.  
  464.     EXPAND A:MWxxxxxx.xx_ C:MWxxxxxx.xxx
  465.  
  466. where the x's above correspond to the remainder of the Name and
  467. Extension.  You'll have to repeat this procedure for each one of the
  468. installation diskettes.  The individual instructions will include the
  469. following file names, although they are not necessarily on the
  470. installation disks in the sequence shown below.
  471.  
  472.     EXPAND  A:MWAV.EX_   C:MWAV.EXE
  473.     EXPAND  A:MWAV.HL_  C:MWAV.HLP
  474.     EXPAND  A:MWAVABSI.DL_  C:MWAVABSI.DLL
  475.     EXPAND  A:MWAVDLG.DL_  C:MWAVDLG.DLL
  476.     EXPAND  A:MWAVDOSL.DL_  C:MWAVDOSL.DLL
  477.     EXPAND  A:MWAVDRVL.DL_  C:MWAVDRVL.DLL
  478.     EXPAND  A:MWAVMGR.DL_  C:MWAVMGR.DLL
  479.     EXPAND  A:MWAVSCAN.DL_  C:MWAVSCAN.DLL
  480.     EXPAND  A:MWAVSOS.DL_  C:MWAVSOS.DLL
  481.     EXPAND  A:MWAVTSR.EX_  C:MWAVTSR.EXE
  482.     EXPAND  A:MWBACKF.DL_  C:MWBACKF.DLL
  483.     EXPAND  A:MWBACKR.DL_  C:MWBACKR.DLL
  484.     EXPAND  A:MWBACKR.EX_   C:MWBACKR.EXE
  485.     EXPAND  A:MWBACKUP.EX_  C:MWBACKUP.EXE
  486.     EXPAND  A:MWBACKUP.HL_  C:MWBACKUP.HLP
  487.     EXPAND  A:MWGRAFIC.DL_  C:MWGRAFIC.DLL
  488.     EXPAND  A:MWUNDEL.EX_  C:MWUNDEL.EXE
  489.     EXPAND  A:MWUNDEL.HL_  C:MWUNDEL.HLP
  490.  
  491. Note that files ending in .EX_ get expanded to names that end in .EXE,
  492. .DL_ to .DLL, and .HL_ to .HLP.
  493.  
  494. When you get done, go back into Windows, and if desired, create a new
  495. group for these programs.  (You can install them into an existing group
  496. if you'd rather.)  Click on File, New, Program Group, OK.  Then type in
  497. MS Tools or the name of your choice.  With the desired group
  498. highlighted, perform the following actions.
  499.  
  500.     Click on File, New, OK and <Tab> to the command Line box.
  501.         Type C:\DOS\MWAV.EXE and click OK.
  502.     Click on File, New, OK and <Tab> to the command Line box.
  503.         Type C:\DOS\MWBACKUP.EXE and click OK.
  504.     Click on File, New, OK and <Tab> to the command Line box.
  505.         Type C:\DOS\MWUNDEL.EXE and click OK.
  506.  
  507. You now have program icons for running Microsoft Windows Anti-Virus,
  508. Backup, and Undelete.
  509.  
  510. 8.  What can you do to increase Windows performance and reliability?
  511.  
  512. In addition to the actions described earlier in this text file, there are several other things that will help Windows load and run a little faster and go longer between GPFs and crashes.
  513.  
  514. a.  Make sure you have a Permanent Swap File set up.  Double-click on
  515. the Control Panel icon, then double-click the 386 Enhanced icon.  Click
  516. the Virtual Memory button and the Change>> button.  In the New Settings
  517. area, if the Type is Temporary or None, click the arrow at the right and
  518. click on Permanent.  if you have more than one drive available, select
  519. the desired drive (preferably the highest performance drive).  If you
  520. use a disk compression program such as DoubleSpace or Stacker, MAKE SURE
  521. THE SELECTED DRIVE IS THE UNCOMPRESSED HOST DRIVE for a Permanent Swap
  522. file!  Otherwise, you'll get a "Corrupted Swap File" message every time
  523. you start Windows.
  524.  
  525. The New Size box will show a number that is based on the Recommended
  526. Size of 3 times the RAM or 50% of the available disk space, whichever is
  527. less.  I generally recommend a size of at least 10 MB, but not more than
  528. 20 MB, depending primarily on the available disk space.  If you have
  529. several hundred Megabytes of disk space available, a 20 MB Swap File
  530. won't keep you from installing new programs.  On the other hand, if you
  531. only have 15 MB of disk space left, taking half of that and leaving you
  532. with only 7.5 MB will very soon cramp your ability to install new
  533. programs and save data files.  I would recommend in this case a 5 MB
  534. Swap File (and purchase of an additional hard drive ASAP).
  535.  
  536. If the Use 32-Bit Disk Access box is present, make sure it is checked.
  537. This will have little if any effect on Windows and Windows program disk
  538. performance, but it will decrease the time it takes to initiate a DOS
  539. program session and switch between multiple DOS sessions.
  540.  
  541. After making the desired changes, click the OK and Yes buttons to exit
  542. these menus and select Restart Now when that prompt appears.  Windows
  543. will exit and then restart with the new swap file settings.
  544.  
  545. Oddly enough, the less RAM you have, the larger your swap file should
  546. be.  It makes sense, though, when you think about it.  If you have 4 MB
  547. of RAM and like to open several programs at a time that require (with
  548. Windows) a total of 14 MB of memory for operation, you'll need at least
  549. a 10 MB swap file.  For this configuration, a 12 MB (maximum of 3 times
  550. the RAM) swap file would provide you with 16 MB, the largest possible
  551. amount of combined RAM and Virtual memory.  A system with 8 MB of RAM
  552. could have an additional 20 MB swap file for a total of 28 MB.  This
  553. system would probably run out of Resources (described previously) long before running out of swap file space.  My 16 MB system with a 10 MB swap file will also run out of Resources with many Megabytes of RAM and Virtual memory remaining.  I know, because I've seen it!  The only situation where I can imagine needing very large swap files is if you work with extremely large data bases or spreadsheets - 10 MB or more in size.
  554.  
  555. If the Recommended Size for a Permanent Swap File is considerably
  556. smaller than that given for a Temporary Swap File or if it shows only a few MB when you know you have many Megabytes of available disk space, you need to defragment your hard drive.  Change the Type to Temporary, and exit back out as described above to save your settings.  Exit Windows and run your defragmenting program.  If you only have the DEFRAG program that comes with MS-DOS 6.x, use it.  If you have access to a commercial defragmenting program such as the ones that come with Norton Utilities (SPEEDISK or SD) or PC Tools (COMPRESS), they have more options for arranging files and SPEEDISK, at least, seems to defragment faster than DEGRAG.
  557.  
  558. b.  Monitor the Windows Resources.  You can do this by clicking on
  559. Program Manager's Help, About to see the Resource % and the remaining
  560. memory (combined RAM and hard drive Virtual Memory in the Windows Swap
  561. File).  Windows starts running into problems and you start getting GPFs
  562. when the Resources drop below 20 to 30%.  Therefore, it's probably time
  563. to start closing applications when the resources start getting much
  564. below 40%.
  565.  
  566. It gets to be quite time consuming to click on Program Manager, Help,
  567. About at frequent intervals.  Fortunately, there are some utilities that
  568. continuously display the Resources and memory.  One is the System
  569. Resource Monitor that comes with the Microsoft Windows Resource Kit
  570. (also available for downloading from the Microsoft Download Service).
  571. The one I prefer is Metz Software's FREEMEM which is available for
  572. downloading from the Windows file area of the ComputerEdge BBS as
  573. FREEMEM.ZIP.
  574. ========================================================================
  575.  
  576. CHANGING WINDOWS SYSTEM FONTS
  577. -----------------------------
  578.  
  579. 9.  There are two ways to select fonts for icons.  If you are using a SVGA driver, Windows or OEM, they usually can be selected with a choice of small fonts (typical) or large fonts.  You can also edit WIN.INI to select the font and size of your choice.  Under [desktop], add (or edit):
  580.  
  581.     IconTitleFaceName=
  582.     IconTitleSize=
  583.  
  584. For the Name, you can enter any valid font name (double-click the Fonts 
  585. icon in Control Panel to get a list of installed font names) such as "MS 
  586. Sans Serif" which is the default.  For the Size, enter the desired point 
  587. size (the default is 8).
  588.  
  589. 10.  It's happened again.  No sooner do I become interested in a question, than I receive a magazine that has the answer.  I just received the January 10, 1995 issue of PC Magazine today.  On page 268 in the PC Solutions section, Neil J. Rubenking answers a question about Windows display fonts.  For icon titles, in addition to the two WIN.INI 
  590. [Desktop] entries that are described above, he describes a third, undocumented entry.
  591.  
  592.     IconTitleStyle=1
  593.  
  594. Where =1 for bold and =0 for normal.
  595.  
  596. 11.  He also tells how to change the system font, which is used for menu 
  597. items and window titles, by creating the entry below in the [Windows] 
  598. section:
  599.  
  600.     SystemFont=
  601.  
  602. and inserting the name of any raster font in the \WINDOWS\SYSTEM 
  603. directory with the extension .FON.  He goes on to say that the raster 
  604. fonts are the ones in the [Fonts] section of WIN.INI that include "(VGA 
  605. Res)".  In my WIN.INI, I found:
  606.  
  607.     MS Sans Serif 8,10,12,14,18,24 (VGA res)=SSERIFE.FON
  608.     MS Serif 8,10,12,14,18,24 (VGA res)=SERIFE.FON
  609.     Symbol 8,10,12,14,18,24 (VGA res)=SYMBOLE.FON
  610.     Small Fonts (VGA res)=SMALLE.FON
  611.  
  612. Therefore, I could change the system font by using:
  613.  
  614.     SystemFont=SSERIFE.FON
  615. or  SystemFont=SMALLE.FON
  616.  
  617. My Windows Resource Kit doesn't mention the SystemFont= entry (some of 
  618. the "Undocumented Windows Secrets" I assume), but it does talk a bit 
  619. about the raster fonts.  It defines the last letter in the file name 
  620. (before the period) as A=CGA, B=EGA, E=VGA, and F=8514/a.  Therefore the 
  621. fonts above are VGA fonts, i.e., SSERIFE; while the same font name for 
  622. EGA would be SSERIFB.  As you might deduce from the font descriptions, 
  623. they are bitmap fonts with specific sizes.  The SMALLx.FON is designed 
  624. to provide a readable display for font sizes under 6 points.
  625.  
  626. The default system screen font is System.  Another default font is 
  627. Terminal, "a fixed-width font used to display the OEM text in the 
  628. Windows Clipboard Viewer.  The OEM font also provides an OEM character 
  629. set used by some Windows applications."  I also found both these in the 
  630. [Fonts] section.  These are for an ATI graphics board operating in 800 x 
  631. 600 resolution.  Yours may differ, i.e., =VGASYS.FON.
  632.  
  633.     System (Set #6)=8514SYS.FON
  634.     Terminal (US) (Set #6)=VGAOEM.FON
  635.  
  636. Now you can go ahead and experiment with different menu and title 
  637. appearances.  You can preview the raster fonts by going into Control 
  638. Panel and double-clicking on the Fonts icon.  Highlighting the font name 
  639. provides a window that shows what the font looks like.  After trying 
  640. this, I can imagine the double takes you'd get if you changed the System 
  641. font to Symbol!
  642. ========================================================================
  643.  
  644. I hope you find these tips useful.  If so, please also check out the DOSTIPS file after I upload it.
  645.  
  646.  
  647.                                                       Hugh Horton
  648.  
  649.